Optimal. Leaf size=105 \[ 2 \sqrt{\frac{10}{\sqrt{35}-2}} \tan ^{-1}\left (\frac{\sqrt{20 x+10}+\sqrt{2+\sqrt{35}}}{\sqrt{\sqrt{35}-2}}\right )-2 \sqrt{\frac{10}{\sqrt{35}-2}} \tan ^{-1}\left (\frac{\sqrt{2+\sqrt{35}}-\sqrt{20 x+10}}{\sqrt{\sqrt{35}-2}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.243228, antiderivative size = 115, normalized size of antiderivative = 1.1, number of steps used = 6, number of rules used = 4, integrand size = 32, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.125, Rules used = {826, 1161, 618, 204} \[ 2 \sqrt{\frac{10}{\sqrt{35}-2}} \tan ^{-1}\left (\frac{10 \sqrt{2 x+1}+\sqrt{10 \left (2+\sqrt{35}\right )}}{\sqrt{10 \left (\sqrt{35}-2\right )}}\right )-2 \sqrt{\frac{10}{\sqrt{35}-2}} \tan ^{-1}\left (\frac{\sqrt{10 \left (2+\sqrt{35}\right )}-10 \sqrt{2 x+1}}{\sqrt{10 \left (\sqrt{35}-2\right )}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 826
Rule 1161
Rule 618
Rule 204
Rubi steps
\begin{align*} \int \frac{5+\sqrt{35}+10 x}{\sqrt{1+2 x} \left (2+3 x+5 x^2\right )} \, dx &=2 \operatorname{Subst}\left (\int \frac{-10+2 \left (5+\sqrt{35}\right )+10 x^2}{7-4 x^2+5 x^4} \, dx,x,\sqrt{1+2 x}\right )\\ &=2 \operatorname{Subst}\left (\int \frac{1}{\sqrt{\frac{7}{5}}-\sqrt{\frac{2}{5} \left (2+\sqrt{35}\right )} x+x^2} \, dx,x,\sqrt{1+2 x}\right )+2 \operatorname{Subst}\left (\int \frac{1}{\sqrt{\frac{7}{5}}+\sqrt{\frac{2}{5} \left (2+\sqrt{35}\right )} x+x^2} \, dx,x,\sqrt{1+2 x}\right )\\ &=-\left (4 \operatorname{Subst}\left (\int \frac{1}{\frac{2}{5} \left (2-\sqrt{35}\right )-x^2} \, dx,x,-\sqrt{\frac{2}{5} \left (2+\sqrt{35}\right )}+2 \sqrt{1+2 x}\right )\right )-4 \operatorname{Subst}\left (\int \frac{1}{\frac{2}{5} \left (2-\sqrt{35}\right )-x^2} \, dx,x,\sqrt{\frac{2}{5} \left (2+\sqrt{35}\right )}+2 \sqrt{1+2 x}\right )\\ &=-2 \sqrt{\frac{10}{-2+\sqrt{35}}} \tan ^{-1}\left (\sqrt{\frac{5}{2 \left (-2+\sqrt{35}\right )}} \left (\sqrt{\frac{2}{5} \left (2+\sqrt{35}\right )}-2 \sqrt{1+2 x}\right )\right )+2 \sqrt{\frac{10}{-2+\sqrt{35}}} \tan ^{-1}\left (\sqrt{\frac{5}{2 \left (-2+\sqrt{35}\right )}} \left (\sqrt{\frac{2}{5} \left (2+\sqrt{35}\right )}+2 \sqrt{1+2 x}\right )\right )\\ \end{align*}
Mathematica [C] time = 0.294548, size = 141, normalized size = 1.34 \[ \frac{2}{217} \left (\sqrt{2-i \sqrt{31}} \left (31 \sqrt{7}-7 i \sqrt{155}-2 i \sqrt{217}\right ) \tanh ^{-1}\left (\frac{\sqrt{10 x+5}}{\sqrt{2-i \sqrt{31}}}\right )+\sqrt{2+i \sqrt{31}} \left (31 \sqrt{7}+7 i \sqrt{155}+2 i \sqrt{217}\right ) \tanh ^{-1}\left (\frac{\sqrt{10 x+5}}{\sqrt{2+i \sqrt{31}}}\right )\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.168, size = 111, normalized size = 1.1 \begin{align*} 20\,{\frac{1}{\sqrt{10\,\sqrt{5}\sqrt{7}-20}}\arctan \left ({\frac{10\,\sqrt{1+2\,x}-\sqrt{5}\sqrt{2\,\sqrt{5}\sqrt{7}+4}}{\sqrt{10\,\sqrt{5}\sqrt{7}-20}}} \right ) }+20\,{\frac{1}{\sqrt{10\,\sqrt{5}\sqrt{7}-20}}\arctan \left ({\frac{10\,\sqrt{1+2\,x}+\sqrt{5}\sqrt{2\,\sqrt{5}\sqrt{7}+4}}{\sqrt{10\,\sqrt{5}\sqrt{7}-20}}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{10 \, x + \sqrt{35} + 5}{{\left (5 \, x^{2} + 3 \, x + 2\right )} \sqrt{2 \, x + 1}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.66963, size = 181, normalized size = 1.72 \begin{align*} -\frac{2}{31} \, \sqrt{31} \sqrt{10 \, \sqrt{35} + 20} \arctan \left (-\frac{{\left (5 \, \sqrt{31}{\left (2 \, x + 1\right )} - \sqrt{35} \sqrt{31}\right )} \sqrt{10 \, \sqrt{35} + 20}}{310 \, \sqrt{2 \, x + 1}}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{10 x + 5 + \sqrt{35}}{\sqrt{2 x + 1} \left (5 x^{2} + 3 x + 2\right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{10 \, x + \sqrt{35} + 5}{{\left (5 \, x^{2} + 3 \, x + 2\right )} \sqrt{2 \, x + 1}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]